extends ../layout

block main
	ul.breadcrumb
		li
			i.icon-home
		li
			i.icon-angle-right
		li
			a(href="/") 面板


	div(class="row-fluid sortable")
		div(class="box span12")
			div(class="box-header", data-original-title)
				h2
					i(class="halflings-icon user")
					span.break
					| 缴保证金

			div.box-content
				table(class="table table-striped table-bordered bootstrap-datatable datatable")
					thead
						tr
							th 时间
							th 单号
							th 用户
							th 金额
							th 状态
							th
					tbody
						- var states = ['初始', '成功', '失败']
						- each deposit in deposits
							tr
								td= moment(deposit.updatedAt).format('LLL')
								td
									a(href="/deposits/#{deposit.id}", target="_blank") #{deposit.id}
								td
									a(href="/customers/#{deposit.get('customer_id')}", target="_blank") #{deposit.get('customer_id')}
								td= deposit.get('money')
								td= states[deposit.get('state')]
								td.center
									a(class="btn btn-info", href="/deposits/#{deposit.id}/edit?app=#{app}")
										i(class="halflings-icon white edit")